<?
session_start();
@include_once('../adodb/adodb.inc.php');
@include_once('../adodb/tohtml.inc.php'); 
@include_once('adodb/adodb.inc.php');
@include_once('adodb/tohtml.inc.php'); 
$DBConnection="local";
define('TABLEPREFIX','lb');
if($DBConnection=="local")
{
	/*---------Local Connection Starts----------*/
	$user="root";
	$pass="";
	$host="localhost";
	$db_name="long_test";	
	#$adodbcon = &ADONewConnection('mysql');
	
	# connection settings for MS-ACCESS...
	$adodbcon =& ADONewConnection('access');
	$dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=import_db/paper.mdb;Uid=jaypal;Pwd=;";
	$adodbcon->Connect($dsn);

	logToFile("+++++++++++++++dfgdfgfd++++++++++++++++++++");
	
	/*$adodbcon->debug=false;
	$adodbcon->Connect($host,$user,$pass,$db_name);*/
	
	/*---------Local Connection Ends------------*/
	/*---------Local URL Info Starts----------*/
	$domainName  = "http://192.168.0.120/team2/longbottom";
	$site_url  = "http://192.168.0.120/team2/longbottom";
	$site_url_ssl  = "http://192.168.0.120/team2/longbottom";
	$site_name = "http://192.168.0.120/team2/longbottom";
	/*---------Local URL Info Ends------------*/
}
elseif($DBConnection=="remote")
{	
	/*---------Local Connection Starts----------*/
	$user="motion_test1";
	$pass="test1";
	$host="localhost";
	$db_name="motion_test1";	
	$adodbcon = &ADONewConnection('mysql'); 
	$adodbcon->debug=false;
	$adodbcon->Connect($host,$user,$pass,$db_name);    
	
	/*---------Local Connection Ends------------*/
	/*---------Local URL Info Starts----------*/
	$domainName  = "http://www.longbottom.com.au";
	$site_url  = "http://www.longbottom.com.au";
	$site_url_ssl  = "https://www.longbottom.com.au";
	$site_name = "http://www.longbottom.com.au";
	/*---------Local URL Info Ends------------*/
}

$admin_email=$adodbcon->GetOne("SELECT admin_email FROM ".TABLEPREFIX."_admin WHERE admin_id='1'");
$items_per_page   = 30;
?>